package com.xxl.job.admin.dao;

import com.xxl.job.admin.core.model.PkpmJobTask;
import com.xxl.job.admin.core.model.XxlJobGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by xuxueli on 16/9/30.
 */
@Mapper
public interface PkpmJobTaskDao {

    public List<PkpmJobTask> pageList(@Param("offset") int offset,
                                      @Param("pagesize") int pagesize,
                                      @Param("taskType") String taskType);

    public List<PkpmJobTask> pageListCount(@Param("offset") int offset,
                                      @Param("pagesize") int pagesize,
                                      @Param("taskType") String taskType);

    public int save(PkpmJobTask task);

    public int update(PkpmJobTask task);

    public int remove(@Param("id") int id);

}
